﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="publish.aspx.cs" Inherits="publish" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="../css/addbook.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
<center>
    <div class="wrap">
        <div class="top">
            <div class="top1">
               
            </div>
        </div>
        <div class="shortnfo">
            <h2>当前位置：基本信息->出版社信息</h2>
            <div class="menuitems">
                
           <ul>
                      <li><a id="A1"  href="../master/index.aspx" runat="server">首页</a></li>
                      
                      <li><a id="A4"  href="~/basic/add_pub.aspx" runat="server">添加信息</a></li>
                      <li><a href="../master/basic.aspx">取消删除</a></li>
                  </ul>
            </div>
        </div>
        <div class="content">
           <table border="0" style="table-layout:fixed;width:100%;text-align:left;height:100%" >
                <tr>
                    <td>编号：<br />
                        <asp:TextBox ID="publishid" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        出版社：<br /><asp:TextBox ID="publishname" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <br /><asp:Button ID="Button2" runat="server" Text="搜索" OnClick="Button2_Click"></asp:Button>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
<asp:GridView ID="Gv1" runat="server" AutoGenerateColumns="False" DataKeyNames="编号"  Height="100%" Width="100%" AllowPaging="True" PageSize="5" OnRowUpdating="Gv1_RowUpdating"  OnPageIndexChanging="Gv1_PageIndexChanging" OnRowDeleting="Gv1_RowDeleting">
    <Columns>
        <asp:BoundField DataField="编号" HeaderText="编号" ReadOnly="True" SortExpression="编号" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="出版社" HeaderText="出版社" SortExpression="出版社" />
        <asp:BoundField DataField="地址" HeaderText="地址" SortExpression="地址" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="邮编" HeaderText="邮编" SortExpression="邮编" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="电话" HeaderText="电话" SortExpression="电话" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Delete" 
                            ImageUrl="~/image_oracle/BtnDelete.gif" 
                            onclientclick="return confirm('确定删除吗？');" />
                    </ItemTemplate>
                </asp:TemplateField>
          <asp:CommandField ButtonType="Image" CancelImageUrl="~/image_oracle/BtnCancel.gif"
                    EditImageUrl="~/image_oracle/BtnUpdate.gif" HeaderText="编辑" ShowEditButton="True" 
                    UpdateImageUrl="~/image_oracle/BtnSave.gif" />


    </Columns>
    <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
    <RowStyle HorizontalAlign="Center" Height="47px" />
</asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString4 %>" ProviderName="<%$ ConnectionStrings:ConnectionString4.ProviderName %>" SelectCommand="select * from booksale.Book_Pub"></asp:SqlDataSource>
                    </td>
                </tr>





            </table>
        </div>
        <div class="footer">
    <p>Copyright ©2019  All Rights Reserved</p> 
     </div>
    </div>



</center>
    </div>
    </form>
</body>
</html>
